#include"headers.h"
#include"picture.h"

Picture::Picture(string File)
{
    file = File;

    picture = load_bitmap( file.c_str(), 0 );

    if(!picture)
    {
        cout<<"Failed to Load: " << file <<"\n";
    }
}

Picture::~Picture()
{
    destroy_bitmap(picture);
}

void Picture::draw_trans_pic(BITMAP *Original, int o_x, int o_y )
{
    draw_sprite(Original, picture, o_x, o_y);
}
